<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue学习elementUI</title>

    <!--    引入vue-->
    <script type="application/javascript" src="../js/vue.js"></script>

    <!--    引入elementUI-->
    <script type="application/javascript" src="../js/index.js"></script>

    <link rel="stylesheet" href="../css/index.css">
</head>
<body>
<div id="app">
    <div>
        <el-form :inline="true" :model="formInline" class="demo-form-inline">
            <el-form-item label="审批人">
                <el-input v-model="formInline.user" placeholder="审批人"></el-input>
            </el-form-item>
            <el-form-item label="活动区域">
                <el-select v-model="formInline.region" placeholder="活动区域">
                    <el-option label="区域一" value="shanghai"></el-option>
                    <el-option label="区域二" value="beijing"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmit">查询</el-button>
            </el-form-item>
        </el-form>
    </div>
</div>
<script>
    let app= new Vue({
        el:"#app",
        //vdata
        data(){
            return{
                formInline: {
                    user: '',
                    region: ''
                }
            }

        },
        methods: {
            fun01() {
            },
            //ctrl + alt +l
            onSubmit() {
                console.log('submit!');
            }
        },
    })

</script>
</body>
</html>